<%@ page language="java" import="com.gin.util.*" pageEncoding="UTF-8" %>
 <%@ page language="java" import="java.util.*" %>
 <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
 <%@ taglib prefix="ssm" uri="http://ssm" %>
 <%@ include file="/head.jsp" %>


<script src="js/jquery.validate.js"></script>

<div>
    <div class="panel panel-default">
        <div class="panel-heading">
            <span class="titles"> 添加考试得分 </span>
        </div>
        <div class="panel-body">
            <form action="kaoshidefen.do?ac=insert" method="post" name="form1" id="form1">
                <!-- form 标签开始 -->

                <input type="hidden" name="shijuanid" value="${param.id}" />
                <div class="form-group">
                    <div class="row">
                        <label style="text-align: right" class="col-sm-2 hiddex-xs">试卷编号</label>
                        <div class="col-sm-10">
                            ${readMap.shijuanbianhao}<input type="hidden" id="shijuanbianhao" name="shijuanbianhao" value="${Info.html(readMap.shijuanbianhao)}" />
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <div class="row">
                        <label style="text-align: right" class="col-sm-2 hiddex-xs">试卷名称</label>
                        <div class="col-sm-10">
                            ${readMap.shijuanmingcheng}<input type="hidden" id="shijuanmingcheng" name="shijuanmingcheng" value="${Info.html(readMap.shijuanmingcheng)}" />
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <div class="row">
                        <label style="text-align: right" class="col-sm-2 hiddex-xs">所属科目</label>
                        <div class="col-sm-10">
                            <ssm:sql var="mapkemu27" type="find">SELECT kemumingcheng,id FROM kemu where id='${readMap.suoshukemu}'</ssm:sql>${mapkemu27.kemumingcheng}<input
                                type="hidden"
                                id="suoshukemu"
                                name="suoshukemu"
                                value="${Info.html(readMap.suoshukemu)}"
                            />
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <div class="row">
                        <label style="text-align: right" class="col-sm-2 hiddex-xs">课程名称</label>
                        <div class="col-sm-10">
                            ${readMap.kechengmingcheng}<input type="hidden" id="kechengmingcheng" name="kechengmingcheng" value="${Info.html(readMap.kechengmingcheng)}" />
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <div class="row">
                        <label style="text-align: right" class="col-sm-2 hiddex-xs">章节名称</label>
                        <div class="col-sm-10">
                            ${readMap.zhangjiemingcheng}<input type="hidden" id="zhangjiemingcheng" name="zhangjiemingcheng" value="${Info.html(readMap.zhangjiemingcheng)}" />
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <div class="row">
                        <label style="text-align: right" class="col-sm-2 hiddex-xs">发布人</label>
                        <div class="col-sm-10">${readMap.faburen}<input type="hidden" id="faburen" name="faburen" value="${Info.html(readMap.faburen)}" /></div>
                    </div>
                </div>
                <div class="form-group">
                    <div class="row">
                        <label style="text-align: right" class="col-sm-2 hiddex-xs">考试编号</label>
                        <div class="col-sm-10">
                            <input
                                type="text"
                                class="form-control"
                                placeholder="输入考试编号"
                                style="width: 150px"
                                readonly="readonly"
                                id="kaoshibianhao"
                                name="kaoshibianhao"
                                value="${Info.getID()}"
                            />
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <div class="row">
                        <label style="text-align: right" class="col-sm-2 hiddex-xs">单选题得分</label>
                        <div class="col-sm-10">
                            <input
                                type="number"
                                class="form-control"
                                placeholder="输入单选题得分"
                                style="width: 150px"
                                number="true"
                                data-msg-number="输入一个有效数字"
                                id="danxuantidefen"
                                name="danxuantidefen"
                                value=""
                            />
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <div class="row">
                        <label style="text-align: right" class="col-sm-2 hiddex-xs">多选题得分</label>
                        <div class="col-sm-10">
                            <input
                                type="number"
                                class="form-control"
                                placeholder="输入多选题得分"
                                style="width: 150px"
                                number="true"
                                data-msg-number="输入一个有效数字"
                                id="duoxuantidefen"
                                name="duoxuantidefen"
                                value=""
                            />
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <div class="row">
                        <label style="text-align: right" class="col-sm-2 hiddex-xs">判断题得分</label>
                        <div class="col-sm-10">
                            <input
                                type="number"
                                class="form-control"
                                placeholder="输入判断题得分"
                                style="width: 150px"
                                number="true"
                                data-msg-number="输入一个有效数字"
                                id="panduantidefen"
                                name="panduantidefen"
                                value=""
                            />
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <div class="row">
                        <label style="text-align: right" class="col-sm-2 hiddex-xs">总得分</label>
                        <div class="col-sm-10">
                            <input
                                type="number"
                                class="form-control"
                                placeholder="输入总得分"
                                style="width: 150px"
                                number="true"
                                data-msg-number="输入一个有效数字"
                                id="zongdefen"
                                name="zongdefen"
                                value=""
                            />
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <div class="row">
                        <label style="text-align: right" class="col-sm-2 hiddex-xs">考试人</label>
                        <div class="col-sm-10">
                            <input
                                type="text"
                                class="form-control"
                                placeholder="输入考试人"
                                style="width: 150px"
                                readonly="readonly"
                                id="kaoshiren"
                                name="kaoshiren"
                                value="${sessionScope.username}"
                            />
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <div class="row">
                        <label style="text-align: right" class="col-sm-2 hiddex-xs"> </label>
                        <div class="col-sm-10">
                            <input name="referer" id="referers" class="referers" value="<%=request.getHeader("referer") %>" type="hidden" />
                            <script>
                                $(function () {
                                    $("input.referers").val(document.referrer);
                                });
                            </script>

                            <button type="submit" class="btn btn-primary" name="Submit">提交</button>
                            <button type="reset" class="btn btn-default" name="Submit2">重置</button>
                            <button type="button" class="btn btn-default" onclick="history.back()">返回</button>
                        </div>
                    </div>
                </div>

                <!--form标签结束-->
            </form>

            <script>
                $(function () {
                    $("#form1").validate();
                });
            </script>
        </div>
    </div>
</div>

<%@ include file="/foot.jsp" %>

